package com.hand.wyc24548.config;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import springfox.documentation.service.Tag;
import springfox.documentation.spring.web.plugins.Docket;

/**
 * @Author wangyc
 * @create 2019/8/5 19:42
 */

@Configuration
public class SwaggerApiConfig {
    public static final String SOHEADER="HodrSoHeader";
    public static final String SOLINE="HodrSoLine";
    public static final String COMPANY="HodrCompany";
    public static final String ORDER="HodrOrder";
    public static final String CUSTOMER="HodrCustomer";

    @Autowired
    public SwaggerApiConfig(Docket docket){
        docket.tags(
                new Tag(SOHEADER,"订单头"),
                new Tag(SOLINE,"订单行"),
                new Tag(COMPANY,"公司信息"),
                new Tag(ORDER,"订单信息"),
                new Tag(CUSTOMER,"客户信息")
        );
    }
}
